<?php

require_once 'init.php';

$eventId = $par->get('id');
$event = query2array("SELECT name, DATE_FORMAT(dt,'%d.%m.%Y') as dt, full_descr, page_title, page_keywords, page_descr FROM events WHERE code_url=:id OR id=:id",array('id'=>$eventId));
$smarty->assign('event',$event);

show(
	'event', 
	$event['name'], 
	array(
		array('link'=>'/events','name'=>'События'),
		array('link'=>'#',      'name'=>$event['name'])
	), 
	$event['page_title'], 
	$event['page_keywords'], 
	$event['page_descr']
);

?>